'use strict';
function make_num_into_letter(item){
  let num1=item%26;
  let num2=Math.floor(item/26);
  if(num2==0){
   item=String.fromCharCode(num1+96);
  }
  else if(num2==1&&num1==0){
    item=String.fromCharCode(122);
  }
  else if(num2>1&&num1==0){
    item=String.fromCharCode(num2-1+96,122);
  }
  else{
    item=String.fromCharCode(num2+96,num1+96);
  }
return item;
}


var number_map_to_word = function(collection){
  let result=collection.map(function(item){
    return make_num_into_letter(item);
  });
  console.log(result);
  return result;
}

module.exports = number_map_to_word;
number_map_to_word([1, 2, 3, 4, 5]);
